<?php
class Home extends CI_Controller {
    public function __construct() {
        parent::__construct();
    }

    public function index() {
        // echo "<h3>Hello, Nguyen Ho Phuong</h3>";
        // $this->load->helper('url');
        // echo base_url();die;
        $ary_param = array(
            'file_name' => 'front_end/category.sql',
            'key'       => 'get_category',
            'param'     => array()
        );

        require_once './application/core/sql.php';
        $res = Sql::exec($ary_param);

        $ary_data = array(
            'list_category' => $res
        );
        $this->load->view("front_end/home", $ary_data);
    }

    public function thoduong() {
        $this->load->view("front_end/home", array('id' => 'thoduong', 'data' => 'phuongnh ....'));
    }
}
?>